package com.freesky.biz.activity.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TAlipayBill implements java.io.Serializable{
    @ExcelIgnore
    private String id;

    @ExcelProperty("渠道")
    private String deptName;

    @ExcelProperty("项目名称")
    private String projectName;

    @ExcelProperty("活动ID")
    private String stockId;

    @ExcelProperty("活动名称")
    private String stockName;

    @ExcelProperty("活动类型")
    private String stockType;

    @ExcelProperty("核销时间")
    private String consumeTime;

    @ExcelProperty("红包核销面额（元）")
    private String amt;

    @ExcelProperty("订单金额（元）")
    private String orderMoney;

    @ExcelProperty("实付金额（元）")
    private String realMoney;

    @ExcelProperty("银行流水号")
    private String bankNo;

    @ExcelProperty("支付宝交易号")
    private String tradeNo;

    @ExcelProperty("商家PID")
    private String mchtId;

    @ExcelProperty("商家名称")
    private String mchtName;

    @ExcelProperty("门店ID")
    private String storeId;

    @ExcelProperty("门店名称")
    private String storeName;

    @ExcelProperty("预充值方式")
    private String rechargeMethod;

    @ExcelProperty("券ID")
    private String couponId;

    @ExcelProperty("券模板ID")
    private String couponTemplate;

    @ExcelProperty("卡号前6位")
    private String cardBin;

    @ExcelProperty("商圈名称")
    private String districtName;

    @ExcelProperty("商圈门店名称")
    private String districtStoreName;

    @ExcelIgnore
    private String deptId;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
